<div class="col-sm-12 mt20" ng-keyup="myKeyup($event)">
  <div class="panel panel-default">
    <div class="panel-body">
      <div class="col-sm-12">
        <div class="row mt10">
            <div class="col-sm-2">
                <ui-select ng-model="recommend" theme="bootstrap" >
                    <ui-select-match placeholder="请选择推荐状态">
                        {{$select.selected.name}}
                    </ui-select-match>
                    <ui-select-choices repeat="item.value as item in rsarr | filter: $select.search">
                        <span ng-bind-html="item.name | highlight: $select.search"></span>
                    </ui-select-choices>
                </ui-select>
            </div>
            <div class="col-sm-2">
                <input type="text" class="form-control"  ng-model="project_name" placeholder="项目名称"> 
            </div>
            <div class="col-sm-2 col-sm-offset-6">
                <button class="btn btn-block btn-info" ng-click="search()">查询</button> 
            </div>
        </div>
      </div>
    </div>
  </div>
  <div class="panel panel-default">
    <div class="panel-body">
        <table class="table table-condensed table-hover table-bordered">
            <thead>
                <tr>
                    <th class=" " style="width: 55%;vertical-align:middle;">项目列表</th>
                    <th class=" " style="width: 15%;vertical-align:middle;">推荐状态</th>
                    <th class=" " style="width: 15%;vertical-align:middle;">单位名称</th>
                    <th class=" text-center" style="width: 15%;text-align:center;vertical-align:middle;">操作</th>
                </tr>
            </thead>
            <tbody ng-repeat="info in objs">
                <tr >                 
                    <td  style="width: 55%;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.project_name}}">{{info.project_name}}</div></td>                          
                    <td  style="width: 15%;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.recommend_district}}">{{info.recommend_district}}</div></td>
                    <td  style="width: 15%;vertical-align:middle;"><div class="ellipsis" style="max-width:100%;display:block;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;" title="{{info.recommend_district}}">{{info.company_name}}</div></td>     
                    <td class="text-center"style="width: 100%;text-align:center;vertical-align:middle;" ng-show="info.recommend_district=='不推荐'">
                            <a type="button" class="btn btn-info btn-xs" ng-click="toinfo($index)">查看</a> 
                            <!--<a type="button" class="btn btn-info btn-xs" ng-click="edit($index)">编辑</a>                 
                            <a type="button" class="btn btn-danger btn-xs" ng-click="delete($index)">废弃</a>                      -->
                            <a type="button" class="btn btn-success btn-xs" ng-click="apply($index)">推荐</a>
                                                
                    </td>
                    <td class="text-center"style="width: 100%;text-align:center;vertical-align:middle;" ng-show="info.recommend_district=='推荐'">
                            <a type="button" class="btn btn-info btn-xs" ng-click="toinfo($index)">查看</a> 
                            <!--<a type="button" class="btn btn-warning btn-xs" >已申请</a>                                               -->
                    </td>                    
                </tr>             
            </tbody>
        </table>
        <div class="text-right">
             <pagination 
                total-items="totalItems" 
                ng-model="currentPage" 
                ng-change="pageChanged()"
                previous-text="上一页"
                next-text="下一页"
                first-text="首页"
                last-text="尾页"
                max-size="5"
                boundary-links="true"
                rotate="false"
                items-per-page="itemsPerPage"
                class="m-t-none m-b">
            </pagination>
        </div>
    </div>
  </div>
</div>